#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>


//#define CHANGE_BIT(N) ((((N)&0x55555555)<<1)+(((N)&0xaaaaaaaa)>>1))
//int main()
//{
//	int n = 0;
//	scanf("%d", &n);
//	//5
//	n = CHANGE_BIT(n);
//	//10
//	printf("%d\n", n);
//	return 0;
//}



//#include <string.h>
//char arr[23] = { 0 };
//char* defangIPaddr(char* address) {
//
//    int i = 0;
//    while (*address != '\0')
//    {
//        if (*address >= '0' && *address <= '9')
//        {
//            arr[i] = *address;
//            i++;
//        }
//        else
//        {
//            arr[i++] = '[';
//            arr[i++] = *address;
//            arr[i++] = ']';
//        }
//        address++;
//    }
//    return arr;
//}
//
//int main()
//{
//    char* str = defangIPaddr("151.230.31.91");
//    printf("%s\n", str);
//    return 0;
//}

int mostWordsFound(char** sentences, int sentencesSize) {
    int count = 1;
    int max = 0;
    int i = 0;
    for (i = 0; i < 3; i++)
    {
        count = 1;
        int j = 0;
        for (j = 0; j < sentencesSize; j++)
        {
            if (sentences[i][j] == '\0')
                break;
            else if (sentences[i][j] == ' ')
                count++;
        }
        if (max < count)
            max = count;
    }
    return max;
}

int main()
{
    int ret = mostWordsFound("alice and bob love leetcode", "i think so too", "this is great thanks very much",)
    return 0;
}